package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @param
 * @return
 */
@Mapper
public interface NursingPlanMapper {
    //分页查询所有数据
    Page<NursingPlanVo> selectByPage(String name, Integer status);

    //查询护理项目count数量
    Long selectPlanCount(Long id);

    //新增护理计划
    void insertNursingPlan(NursingPlan nursingPlan);

    //查询回显
    NursingPlan getByIdPlan(Long id);

    //修改护理项目
    void nursingPlanMapper(NursingPlan nursingPlan);

    //删除
    void deleteNursingPlan(Long id);

    //查询护理等级count数量
    Long selectPlanGradeCount(Long id);

    //是否禁用
    void isNursingPlan(Long id, Integer status);

    //查询所有护理计划
    List<NursingPlanVo> selectALLNusingPlan();
}
